<!-- <script lang="ts">
export default {
  name: 'Test',

  created() {
    console.log(this.$refs.header)
  },
}
</script> -->

<script setup lang="ts">
import { ref, useTemplateRef } from 'vue'

const header = ref(null)

// 3.5+
const title = useTemplateRef('title')
</script>

<template>
  <div class="container">
    <div ref="header"></div>
    <div ref="title"></div>
  </div>
</template>
